<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>劳务公司-劳务人员</title>
    <link rel="stylesheet" href="../assets/layui/css/layui.css" media="all">
</head>
<body>
<table class="layui-table" lay-filter="tbFliter" style="margin-top: -10px;" id="tbData">
</table>
</body>
<script src="../assets/layui/layui.js" charset="utf-8"></script>
<script>
    layui.use(['layer', 'common','table'], function () {
        var $ = layui.jquery,
            table = layui.table,
            common=layui.common,
            layer = layui.layer;

        var bz_id=common.getUrlParam("bz_id");
        table.render({
            elem: '#tbData'
            // , skin: 'row'   //行边框风格
            // ,even: true //开启隔行背景
            , url: '../person/personCompanylist?bz_id='+bz_id+'&time='+new Date()
            , page: false
            , cols: [
                [
                    { field: 'name', title: '姓名', width: 100 },
                    { field: 'sex', title: '性别', width: 100, templet: function (e) {
                            if (e.sex == "0") {
                                return "男";
                            } else if (e.sex == "1") {
                                return "女";
                            }
                        }},
                    { field: 'number', title: '身份证号', width: 300 }
                ]]
            , id: 'tbOptions'
        });

    });
</script>
</html>